﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace integrationServer
{
    class ListMoveBoardResponse
    {
        [XmlArrayItem("moves")]
        public List<Compact1BoardModel> boards = new List<Compact1BoardModel>();

        public class Compact1BoardModel
        {
            [XmlAttribute()]
            public String board;
            [XmlAttribute()]
            public int seq;
            public String url;

            public List<Moves> moves = new List<Moves>();
            private Moves moves_2;

            public Compact1BoardModel() { }
            public Compact1BoardModel(Board u)
            {
                this.board = u.Name;
                //this.seq =
                this.url = u.url;
                this.moves = u.listMove;
            }

            public Compact1BoardModel(Moves moves_2)
            {
                // TODO: Complete member initialization
                this.moves_2 = moves_2;
            }
        }
    }
}
